//
//  ViewController.m
//  IQKeyboardManager的使用
//
//  Created by clz on 2019/10/5.
//  Copyright © 2019 clz. All rights reserved.
//

#import "ViewController.h"
#import <Masonry.h>
#import <IQKeyboardManager.h>


@interface ViewController ()<UITextFieldDelegate>

@property(nonatomic,strong)UITextField *textField;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.textField = [[UITextField alloc]init];
    self.textField.delegate = self;
    self.textField.borderStyle = UITextBorderStyleRoundedRect;
    self.textField.placeholder = @"请输入";
    [self.view addSubview:self.textField];
    [self.textField mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view).offset(20);
        make.right.bottom.equalTo(self.view).offset(-20);
    }];
    
//    IQKeyboardManager *manager = [IQKeyboardManager sharedManager];
//    manager.enable = NO;
}

- (BOOL)textFieldShouldReturn:(UITextField *)textField{
    [textField resignFirstResponder];
    return YES;
}




@end
